//    Copyright (C) Kherty.  All rights reserved.
using System.Collections;

namespace OpenLS.Chart.UI
{
    class ClusteredChartLayout: NonStackedChartLayout
    {
        public override double GetZ(int seriesIndex)
        {
            return 0;
        }

        public ClusteredChartLayout(IEnumerable series, bool useRange): base (series, useRange)
        {
        }

        #region INumericChartDisplayInformation Members

        #endregion


        internal override Bounds GetXBounds(Bounds xBounds, int seriesIndex, int seriesCount)
        {
            double xDelta = xBounds.Delta/seriesCount;
            return Bounds.Create(xBounds.Low + xDelta*(seriesIndex), xBounds.Low + xDelta*(seriesIndex + 1));
        }
    }
}
